import request from "@/common/request";
import {IParam} from "@/common";
import followJson from './mock/follow.json'
import memberJson from './mock/member.json'

export const FOLLOW = (data = null) => request({url: '/api/follow', method: 'GET'})

export function apiGetFollowList(params: IParam, useMock?: boolean): Promise<any> {
  if (useMock) {
    return Promise.resolve(followJson);
  }
  return request({url: `/v1/app/systemAlarm`, params});
}

export function apiGetMembers(params: IParam, useMock?: boolean): Promise<any> {
  if (useMock) {
    return Promise.resolve(memberJson);
  }
  return request({url: `/v1/app/members`, params});
}
